package com.beidu.lottery.call.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 活动基础信息表
 * </p>
 *
 * @author 北渡
 * @since 2023-08-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("b_activity_base_info")
@ApiModel(value="ActivityBaseInfo对象", description="活动基础信息表")
public class ActivityBaseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "租户编码")
    private String tenantCode;

    @ApiModelProperty(value = "活动名称")
    private String activityName;

    @ApiModelProperty(value = "活动类型(0-报名活动、1-投票活动)")
    private Integer activityType;

    @ApiModelProperty(value = "活动封面图Url")
    private String coverImgUrl;

    @ApiModelProperty(value = "活动开始时间")
    private LocalDateTime activityBeginTime;

    @ApiModelProperty(value = "活动结束时间")
    private LocalDateTime activityEndTime;

    @ApiModelProperty(value = "活动规则说明")
    private String activityRuleDescribe;

    @ApiModelProperty(value = "活动URL")
    private String activityUrl;

    @ApiModelProperty(value = "活动状态(0:下架, 1:上架,2:草稿)")
    private Integer groundingStatus;

    @ApiModelProperty(value = "活动上架时间")
    private LocalDateTime groundingTime;

    @ApiModelProperty(value = "是否分享-成为模板(0:不分享, 1:分享)")
    private Integer share;

    @ApiModelProperty(value = "数据状态(0:删除, 1:正常)")
    @TableLogic
    private Integer status;

    @ApiModelProperty(value = "创建人id")
    private String createdBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdDate;

    @ApiModelProperty(value = "更新人id")
    private String updatedBy;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedDate;


}
